#!/bin/sh
sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/termux-packages-24 stable main@' $PREFIX/etc/apt/sources.list

sed -i 's@^\(deb.*games stable\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/game-packages-24 games stable@' $PREFIX/etc/apt/sources.list.d/game.list

sed -i 's@^\(deb.*science stable\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/science-packages-24 science stable@' $PREFIX/etc/apt/sources.list.d/science.list


#cd ~/storage/shared/qpython
#pkg install git
#git clone https://gitee.com/xdswang/termux_ui2.git

apt install libxml2
apt install libxslt
apt install libiconv
apt install libxml2-utils
apt install libxml2-dev
apt install libxslt-dev
apt install libiconv-dev

pkg update
pkg install python
pip install cython
pkg install libxml2 libxslt
pkg install -y python ndk-sysroot clang make libjpeg-turbo
pkg install clang
pip install lxml
pip install wheel
pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install pillow -i https://pypi.tuna.tsinghua.edu.cn/simple/

pip install  uiautomator2
